﻿using System.Windows.Controls;
using System.Windows.Media;
using Visifire.Charts;

namespace CodeGears.WorkItemTracking.ChartingDashboard
{
    /// <summary>
    /// Interaction logic for ChartView.xaml
    /// </summary>
    public partial class ChartView : UserControl
    {
        public ChartView()
        {
            InitializeComponent();
        }

        public void SetData(DataSeries dataSeries)
        {
            ChartArea.Series.Clear();
            if(dataSeries != null)
            {
                ChartArea.Series.Add(dataSeries);
            }
        }
    }
}